<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<title><?php echo ($vo["title"]); ?></title>
	<meta charset="utf-8">
	<meta name="author" content="pixelhint.com">
	<meta name="description" content="Magnetic is a stunning responsive HTML5/CSS3 photography/portfolio website  template"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
	<link rel="stylesheet" type="text/css" href="/blog-doing/Public/Home/css/reset.css">
	<link rel="stylesheet" type="text/css" href="/blog-doing/Public/Home/css/main.css">
	<link rel="stylesheet" href="/blog-doing/Public/Common/share/dist/css/share.min.css">

</head>
<style media="screen">
</style>
<body>

	<header>
		<div class="logo">
			<a href="index.html"><img src="/blog-doing/Public/Home/img/logo.png" title="Magnetic" alt="Magnetic"/></a>
		</div><!-- end logo -->
		<div id="menu_icon"></div>
		<nav>
			<ul>
				<?php if(is_array($newsType)): $i = 0; $__LIST__ = $newsType;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$type): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('Home/Index/index',array('username'=>'feiyanger','type_id'=>$type['type_id']));?>" attr-id="<?php echo ($type["title"]); ?>"><?php echo ($type["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</nav><!-- end navigation menu -->

		<div class="footer clearfix">
			<div class="social-share">

			</div>
			<div class="rights">
				<p>Copyright © 2014 magnetic.</p>
				<p>Template by <a href="">Pixelhint.com</a></p>
			</div><!-- end rights -->
		</div ><!-- end footer -->
	</header><!-- end header -->

	<section class="main clearfix">


			<?php if(!empty($$vo["img_url"])): ?><section class="top" style="background: url('<?php echo ($vo["img_url"]); ?>'); no-repeat;
			background-size:cover;">
			<?php else: ?>
			<section class="top" style="background: url('/blog-doing/Public/Home/img/hero_image.jpg') no-repeat;
			background-size:cover;"><?php endif; ?>
			<div class="wrapper content_header clearfix">
				<div class="work_nav">

					<ul class="btn clearfix">
						<li><a href="#" class="previous" data-title="Previous"></a></li>
						<li><a href="index.html" class="grid" data-title="Portfolio"></a></li>
						<li><a href="#" class="next" data-title="Next"></a></li>
					</ul>

				</div><!-- end work_nav -->
				<h1 class="title"><?php echo ($vo["title"]); ?></h1>
				<input type="hidden" name="id" value="<?php echo ($vo["news_id"]); ?>">
			</div>
		</section><!-- end top -->

		<section class="wrapper">
			<div class="content">
				<?php echo ($vo["content"]); ?>
			</div><!-- end content -->
		</section>
	</section><!-- end main -->
	<script type="text/javascript" src="/blog-doing/Public/Common/js/jquery.min.js"></script>
	<script type="text/javascript" src="/blog-doing/Public/Home/js/main.js"></script>
	<script type="text/javascript" src="/blog-doing/Public/Home/js/map.js"></script>
	<script type="text/javascript" src="/blog-doing/Public/Common/share/dist/js/jquery.share.min.js"></script>
	<script src="/blog-doing/Public/Common/js/layer/layer.js"></script>
	<script src="/blog-doing/Public/Common/js/layui/layui.js"></script>
	<script src="/blog-doing/Public/Common/js/dialog.js"></script>
	<script type="text/javascript">
	var URL = {
		'check_url':"<?php echo U('Admin/News/check');?>",
		'jump_url':"<?php echo U('Admin/News/index');?>"
	}
	var id = $("input[name=id]").val();
	layer.confirm('是否审核通过', {
		offset: 'r', //右下角弹出
	  btn: ['通过','不通过','返回'] //按钮
	}, function(){
		$.post(URL.check_url,{'news_id':id,'is_pass':1},function(res){
				if(res.code ==200){
					return dialog.success(res.message,URL.jump_url);
				}
				if(res.code ==400){
					return dialog.error(res.message);
				}
		},'json');
	}, function(){
		$.post(URL.check_url,{'news_id':id,'is_pass':0},function(res){
				if(res.code ==200){
					return dialog.success(res.message,URL.jump_url);
				}
				if(res.code ==400){
					return dialog.error(res.message);
				}
		},'json');
	}, function(){
	  layer.close();
	});
	var config = {
		url                 : 'http://yangzhancaiwu.cn', // 网址，默认使用 window.location.href
		source              : '', // 来源（QQ空间会用到）, 默认读取head标签：<meta name="site" content="http://overtrue" />
		title               : 'feiyanger Test', // 标题，默认读取 document.title 或者 <meta name="title" content="share.js" />
		description         : '', // 描述, 默认读取head标签：<meta name="description" content="PHP弱类型的实现原理分析" />
		image               : 'http://img.ixiumei.com/uploadfile/2016/0530/20160530014358313.jpg', // 图片, 默认取网页中第一个img标签
		sites               : ['qzone', 'qq', 'weibo','wechat'], // 启用的站点
		disabled            : ['google', 'facebook', 'twitter'], // 禁用的站点
	 };

	$('.social-share').share(config);
	</script>
</body>
</html>